package cn.topevery.garden.entity.query;

import cn.topevery.garden.framework.base.BaseQuery;
import hw.topevery.framework.annotation.DbTableField;
import hw.topevery.framework.enums.DbTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 设备报警记录表 查询参数
 *
 * @author code-generate
 * @date 2021-09-06
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "DeviceWarningQuery", description = "设备报警记录表 查询参数")
public class DeviceWarningQuery extends BaseQuery {

    @ApiModelProperty(value = "告警状态 0：未处理 1：已处理")
    private Integer warningStatus;

    /**
     * 设备类型id
     */
    @DbTableField(columnName = "c_type", dbType = DbTypeEnum.VARCHAR)
    public String type ;

    /**
     * 告警类型id
     */
    @DbTableField(columnName = "c_warning_type_id", dbType = DbTypeEnum.VARCHAR)
    public String warningTypeId ;


    @DbTableField(columnName = "c_main_id", dbType = DbTypeEnum.INTEGER)
    public Integer mainId;
}
